package xin.marcher.module.inventory.strategy.service;

import org.springframework.stereotype.Service;
import xin.marcher.module.inventory.domain.bo.InventoryBucketOperateBO;
import xin.marcher.module.inventory.service.InventoryBucketService;
import xin.marcher.module.inventory.strategy.route.AbstractOperateStrategy;

import javax.annotation.Resource;

/**
 * 分桶扩容操作处理服务
 */
@Service("capacityOperateProcess")
public class CapacityOperateProcessService extends AbstractOperateStrategy {

    @Resource
    private InventoryBucketService inventoryBucketService;

    @Override
    public void process(InventoryBucketOperateBO inventoryBucketOperateBO) {
        inventoryBucketService.processCapacityOperate(inventoryBucketOperateBO);
    }
}
